package com.ruoyi.common.entity.CoreEntity;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 用户积分抽奖记录对象 lottery_records
 * 
 * @author Sxz
 * @date 2025-08-07
 */
public class LotteryRecords extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 抽奖记录ID */
    private Long id;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long userId;

    /** 中奖奖品ID */
    @Excel(name = "中奖奖品ID")
    private Long lotteryConfigId;

    /** 消耗积分 */
    @Excel(name = "消耗积分")
    private Long pointsCost;

    /** 抽奖时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "抽奖时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdAt;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    public void setLotteryConfigId(Long lotteryConfigId) 
    {
        this.lotteryConfigId = lotteryConfigId;
    }

    public Long getLotteryConfigId() 
    {
        return lotteryConfigId;
    }

    public void setPointsCost(Long pointsCost) 
    {
        this.pointsCost = pointsCost;
    }

    public Long getPointsCost() 
    {
        return pointsCost;
    }

    public void setCreatedAt(Date createdAt) 
    {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt() 
    {
        return createdAt;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("lotteryConfigId", getLotteryConfigId())
            .append("pointsCost", getPointsCost())
            .append("createdAt", getCreatedAt())
            .toString();
    }
}
